<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页面</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/login.css">
    <link rel="stylesheet" href="css/index.css">
    <script type="text/javascript" src="js/jquery.min.js"></script>
</head>

<body>
    <div class="container-login">
        <div class="container-pic">
            <img src="pic/logpic.jpg" width="305px">
        </div>


        <div class="login-dialog">
            <h3>登陆</h3>
            <div class="row">
                <span>用户名</span>
                <input type="text" name="userName" id="userName" class="form-control">
            </div>
            <div class="row">
                <span>密码</span>
                <input type="password" name="password" id="password" class="form-control">
            </div>
            <div class="row">
                <button type="button" class="btn btn-info btn-lg" onclick="login()">登录</button>
            </div>
        </div>

    </div>
    <script src="js/jquery.min.js"></script>
    <script>
        function login() {
            // $.ajax({
            //     url: "/user/login",
            //     type: "post",
            //     data: {
            //         name: $("#userName").val(),
            //         password: $("#password").val(),
            //     },
            //     success: function (result) {
            //         if (result) {
            //             location.href = "webclass9_11.html";
            //         } else {
            //             alert("密码错误")
            //         }
            //     }
            // })
            location.href = "index.html";
        }
    </script>
</body>

</html>